import request from '@/utils/request'

export function getCustomerListSelf(query) {
    return request({
        url: '/nurserecord/customerListSelf',
        method: 'get',
        params: query
    })
}

export function getRecordListSelf(query) {
    return request({
        url: '/nurserecord/recordListSelf',
        method: 'get',
        params: query
    })
}
export function getNersingItemSelf(query) {
    return request({
        url: '/customernurseitem/pageToday',
        method: 'get',
        params: query
    })
}
export function getRecordById(id) {
    return request({
        url: '/nurserecord/getById/' + id,
        method: 'get',
    })
}
export function saveOrUpdateRecord(query) {
    return request({
        url: '/nurserecord/saveOrUpdate',
        method: 'post',
        data: query
    })
}
export function doneNursing(query) { 
    return request({
        url: '/customernurseitem/doneNursing',
        method: 'post',
        data: query
    })
}

export function deleteRecordById(id) {
    return request({
        url: '/nurserecord/' + id,
        method: 'delete',
    })
}   
export function getCustomerName(){
    return request({
        url: '/checkIn/listAll',
        method: 'get',
    })
}
export function getNurseItem(){
    return request({
        url: '/nursecontent/list',
        method: 'get',
    })
}
export function getUserItem(){
    return request({
        url: '/user/list',
        method: 'get',
    })
}